﻿using System;

namespace ShopB2C.Entity {
    [Serializable]
    public class CommentEntity {    
        /// <summary>
        /// 无参构造函数
        /// </summary>
        public CommentEntity() { }
        /// <summary>
        /// 评论表关键字段，递增 ID
        /// </summary>
        public Int32 CommentId { get; set; }        
        /// <summary>
        /// 评论内容，最多250字符
        /// </summary>
        public String Content { get; set; }        
        /// <summary>
        /// 评分值
        /// </summary>
        public Int32 GradeValue { get; set; }        
        /// <summary>
        /// 评论时间
        /// </summary>
        public DateTime AddDate { get; set; }
        /// <summary>
        /// 是否通过审核
        /// </summary>
        public Boolean IsAudit { get; set; }
        /// <summary>
        /// 评论商品 id
        /// </summary>
        public Int32 ProductId { get; set; }        
        /// <summary>
        /// 用户 ID
        /// </summary>
        public Int32 Uid { get; set; }
        /// <summary>
        /// 回复评论 ID
        /// </summary>
        public Int32 ReCommentId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 用户等级 id
        /// </summary>
        public Int32 LevelId { get; set; }
        /// <summary>
        /// 用户等级名称
        /// </summary>
        public string LevelName { get; set; }
        /// <summary>
        /// 用户等级图标
        /// </summary>
        public string LevelIcon { get; set; }
        /// <summary>
        /// 用户图标
        /// </summary>
        public string UserFace { get; set; }
        /// <summary>
        /// 评论数
        /// </summary>
        public Int32 ReplyNum { get; set; }
        /// <summary>
        /// 平均分
        /// </summary>
        public decimal AverageGradeValue { get; set; }
    }    
}
